package com.td.framework.webmanager.domain;

/**
 * AppsysYmxsbId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AppsysYmxsbId implements java.io.Serializable {

	// Fields

	private String mkdm;
	private Long yhid;

	// Constructors

	/** default constructor */
	public AppsysYmxsbId() {
	}

	/** full constructor */
	public AppsysYmxsbId(String mkdm, Long yhid) {
		this.mkdm = mkdm;
		this.yhid = yhid;
	}

	// Property accessors

	public String getMkdm() {
		return this.mkdm;
	}

	public void setMkdm(String mkdm) {
		this.mkdm = mkdm;
	}

	public Long getYhid() {
		return this.yhid;
	}

	public void setYhid(Long yhid) {
		this.yhid = yhid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AppsysYmxsbId))
			return false;
		AppsysYmxsbId castOther = (AppsysYmxsbId) other;

		return ((this.getMkdm() == castOther.getMkdm()) || (this.getMkdm() != null
				&& castOther.getMkdm() != null && this.getMkdm().equals(
				castOther.getMkdm())))
				&& ((this.getYhid() == castOther.getYhid()) || (this.getYhid() != null
						&& castOther.getYhid() != null && this.getYhid()
						.equals(castOther.getYhid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getMkdm() == null ? 0 : this.getMkdm().hashCode());
		result = 37 * result
				+ (getYhid() == null ? 0 : this.getYhid().hashCode());
		return result;
	}

}